<?php include 'session.php'?>
<?php include 'month.php'?>
<?php include 'year.php'?>

<html class="no-js" lang="en">
<head>
	<title>Shopping Cart</title>
	
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;" />
	<meta name="format-detection" content="telephone=no" />

	<!-- todo <link rel="shortcut icon" type="image/ico" href="http://images/favicon.ico" />-->

	<link rel="stylesheet" href="css/reset.css" />
	<link rel="stylesheet" href="css/utils.css" />
	<link rel="stylesheet" href="css/layout.css" />
	<link rel="stylesheet" href="css/typography.css" />
	<link rel="stylesheet" href="css/lists.css" />
	<link rel="stylesheet" href="css/forms.css" />
	<link rel="stylesheet" href="css/blocks.css" />
	<link rel="stylesheet" href="css/media-queries.css" />

	<script src="js/json2.js"></script>
	<script src="js/zepto.js"></script>
	<script src="js/m-trapeze.js"></script>
	<script src="js/m-carousel.js"></script>
	<script src="js/m-statusbar.js"></script>

</head>
<body class="blog-page">
	<div id="Wrapper">
		<header id="Chrome">
			<h1 id="Logo"></h1>
			<nav id="ChromeNav">
				<ul>
					<li id="NavHome"><a href="home.php" class="icon">Home</a></li>
					<li id="NavLocator"><a href="/locator/search/"><span class="word">Find</span> <span class="word">Locations</span></a></li>
					<li id="NavSearch"><a href="/search/" class="icon">Search</a></li>
				</ul>
			</nav>

			<form id="FormLocator" action="choice.php" method="get" class="chrome-block">
				<div class="container">
					<label for="id_location">Enter Zip or City Name</label>
					<div class="wrapper">
						<button id="LocatorCurrent" class="button-primary">Use Curent Location</button>
						<input id="id_location" name="location" type="text"  />
						<input id="id_lat" name="lat" type="hidden" />
						<input id="id_lng" name="lng" type="hidden" />
						<input id="id_geocode_results" name="geocode_results" type="hidden" />
						<button id="LocatorSearch" class="button-secondary" type="submit">Search</button>
					</div>
				</div>
			</form>

			<form id="FormSearch" action="sphider/search.php" method="get" class="chrome-block">
				<div class="container">
					<label for="id_q">Search</label>
					<div class="wrapper">
					<input id="id_q" name="q"  type="text" />
					<button class="button-secondary" type="submit">Search</button>
				</div>
				</div>
			</form>
		</header>
		<div id="Main">
			<div id="Content">
				<header class="row">
					<h2>Payment Method</h2>
				</header>
		
<?php
$m = $_SESSION['m'];
if ($m == 1) {
$cid = $_SESSION['cid'];
$resultPaymentMethods = $soap->call($session_id, "cart_payment.list", array($cid));
// echo print_r($resultPaymentMethods);
}
echo <<< HERE
				<section>
					<article>
						<header class="button-header">
							<a href="#" class="blog-title">PayPal Direct Payment Payflow Edition</a>
						</header>
						<div class="teaser row">
							<form action="paypal.php" method="post">
								<table>
									<tr>
										<td>Credit Card Type</td>
										<td><select name="cardType">
											<option>America Express</option>
											<option>Visa</option>
											<option>Mastercard</option>
										</select></td>
									</tr>
									<tr>
										<td>Credit Card Number</td>
										<td><input type="text" name="cardNumber" /></td>
									</tr>
									<tr>
										<td>Card Verification Number</td>
										<td><input type="text" name="vNumber" size="3" maxlength="3"/></td>
									</tr>
									<tr>
										<td>Expiration Date</td>
										<td>
											<select name="month">
HERE;
											foreach ($months as $month) {
												echo '<option value="'.$month.'">'.$month.'</option>';
											}
echo <<< HERE
											</select>
											<select name="year">
HERE;
											foreach ($years as $year) {
												echo '<option value="'.$year.'">'.$year.'</option>';
											}
echo <<< HERE
											</select>
										</td>
									</tr>
								</table>
								<br/>
								<ul class="buttons">
									<li style="float:left"><a href="#" class="button-secondary" onclick="javascript:history.go(-1);">Back</a></li>
									<li style="float:left; margin-left:10px"><input type="submit" value="Next" name="submit" class="button-secondary" /></li>
								</ul>
								<br/>
							</form>
						</div>
					</article>
					<article>
						<header class="button-header">
							<a href="#" class="blog-title">Credit Card</a>
						</header>
						<div class="teaser row">
							<form action="creditcard.php" method="post">
								<table>
									<tr>
										<td>Name on Card</td>
										<td><input type="text" name="name" /></td>
									</tr>
									<tr>
										<td>Credit Card Type</td>
										<td><select name="cardType">
											<option>America Express</option>
											<option>Visa</option>
											<option>Mastercard</option>
										</select></td>
									</tr>
									<tr>
										<td>Credit Card Number</td>
										<td><input type="text" name="cardNumber" /></td>
									</tr>
									<tr>
										<td>Expiration Date</td>
										<td>
											<select name="month">
HERE;
											foreach ($months as $month) {
												echo '<option value="'.$month.'">'.$month.'</option>';
											}
echo <<< HERE
											</select>
											<select name="year">
HERE;
											foreach ($years as $year) {
												echo '<option value="'.$year.'">'.$year.'</option>';
											}
echo <<< HERE
											</select>
										</td>
									</tr>
								</table>
								<br/>
								<ul class="buttons">
									<li style="float:left"><input type="button" value="Back" onclick="javascript:history.go(-1);" class="button-secondary" /></li>
									<li style="float:left; margin-left:10px"><input type="submit" value="Next" name="submit" class="button-secondary" /></li>
								</ul>
								<br/>
							</form>
						</div>
					</article>
				</section>
HERE;
?>
			</div>
	
<?php include 'footer.php'?>